package com.tao.china.biz.jdbc.dao;

import java.sql.SQLException;
import java.util.List;

import com.tao.china.biz.domain.Product;



/**
 * @author liuchao
 */
public interface ProductDao {

    //创建所有表
    public void createTable( String   tableName  ) throws SQLException;
    
    public Product getByIId( Long iid )throws SQLException;
    
    public List<Product> getByStatus( String tabName,String states ,int pageSize)throws SQLException;
    
    public void updateByIid( Product product )throws SQLException;
    
    public int deleteByIid( Long iid ) throws SQLException;
    
    public Product getByTabName(String tabName,Long iid)throws SQLException;
    
    public void insertBySearchAPI (Long table,Product product)throws SQLException;
    
    
}
